package org.cpar.compiler.nodes;

import org.antlr.runtime.Token;
import org.antlr.runtime.tree.Tree;
import org.cpar.compiler.CPARNode;
import org.cpar.compiler.ICodeWriter;

public class AllocProcCall extends CPARNode {

	public AllocProcCall(Token nextToken) {
		super(nextToken);
	}

	public void accept(ICodeWriter writer) {
		writer.visit(this);
	}

	public AllocProcCall(AllocProcCall p) {
		super(p);
	}

	public String getProcCount() {
		return ((CPARNode) getChild(0)).getText();
	}

	@Override
	public Tree dupNode() {
		return new AllocProcCall(this);
	}

}
